/**
 * service: distributor
 *
 * @author    Dmitry Ustimov
 * @date      March 2012
 *
 */
package com.gr

class DistributorService {

    def nodeIdToDBId(nodeId) { //nodeId is like Division_DivA
		if (nodeId =~ "Division_") {
			return nodeId.minus("Division_").toLong()
		}
		else if (nodeId =~ "Project_") {
			return nodeId.minus("Project_").toLong()
		}
	}
}
